package com.yzy.fly.config.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

@Data
@ConfigurationProperties(prefix = "fly")
public class FlyProperties {

    @Value(value = "${fly.project.version}")
    private String version;

    private String datasource;

    private String mode; //模式 develop‌ dev

    @NestedConfigurationProperty
    private Configuration configuration;

}

